<template>
  <a-result
    :isSuccess="true"
    :content="false"
    :title="email"
    :sub-title="description">

    <template #extra>
      <a-button size="large" type="primary" @click="goHomeHandle">返回登录</a-button>
      <!-- <a-button size="large" style="margin-left: 8px">返回首页</a-button> -->
    </template>

  </a-result>
</template>

<script>
export default {
  name: 'RecoverResult',
  data () {
    return {
      description: '',
      form: {}
    }
  },
  computed: {
    email () {
      const v = this.form && this.form.password || 'xxx'
      return `修改成功!您的密码是：${v} 请牢记您的密码!`
    }
  },
  created () {
    this.form = this.$route.params
  },
  methods: {
    goHomeHandle () {
      this.$router.push({ name: 'login' })
    }
  }
}
</script>

<style scoped>

</style>
